<div id="ja-header" class="wrap">
<div class="main">
<div class="inner clearfix" style="background-image: url(../images/download-bg.gif);">
	<?php

	$siteName = $this->sitename();
	if ($this->getParam('logoType')=='image'): ?>
	<h1 class="logo">
		<a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
	</h1>
	<?php else:
	$logoText = (trim($this->getParam('logoText'))=='') ? $config->sitename : $this->getParam('logoText');
	$sloganText = (trim($this->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $this->getParam('sloganText');	?>
	<div class="logo-text">
		<h1><a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo '<img src="./images/logo.jpg" alt="Angry face" />';//$logoText; ?></span></a></h1>
		<p class="site-slogan"><?php echo 'vn24.com'; //echo  $sloganText;?></p>
	</div>
	<?php endif; ?>

	<?php if($this->countModules('search')) : ?>
	<div id="ja-search">
		<jdoc:include type="modules" name="search" />
	</div>
	<?php endif; ?>
	
</div>

<div class="ja-topbar clearfix">

	<p class="ja-day">
	  <?php 
		echo "<span class=\"day\">".date ('l')."</span>";
		echo "<span class=\"date\">, ".date ('M')." ".date ('d')."". date ('S')."</span>";
	  ?>
	</p>

	<p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em><?php echo $this->getLastUpdate(); ?></em></p>
	
	<?php if($this->countModules('headlines')) : ?>
	<div class="ja-healineswrap">
		<em><?php echo JText::_('Headlines')?></em>
		<jdoc:include type="modules" name="headlines" />
	</div>
	<?php endif; ?>
	
	<?php if($this->countModules('syndicate')) : ?>
	<div class="ja-syndicate">
		<jdoc:include type="modules" name="syndicate" />
	</div>
	<?php endif; ?>
	
	<jdoc:include type="modules" name="megamenu" />

</div>
</div>
</div>
